package com.test;

import java.math.BigInteger;
import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSON;
import com.lx.pc.domain.vo.goodssupply.GoodssupplyVo;
import com.lx.pc.service.goodssupply.IGoodssupplyService;

@Controller
@RequestMapping(name="goodssupply")
public class Goodssupplytest {
	@Resource(name="goodssupplyService")
	private IGoodssupplyService goodssupplyService;
	
	@RequestMapping("/goodsSupplydetails")
	public String findGoodsSupplydetails(BigInteger id){
		HashMap<String, Object> result = new HashMap<String,Object>();
		GoodssupplyVo goodssupplyVo = goodssupplyService.findByGoodssupplyId(id);
		result.put("goodssupplyVo", goodssupplyVo);
		return JSON.toJSONString(result);
		}

}
